import React, { Component } from 'react'

export default class Item extends Component {
  render() {
    const { completed, title } = this.props
    return (
      <li className="list-group-item">
        <div className="checkbox">
          <label>
            <input
              type="checkbox"
              value=""
              checked={completed}
              onChange={() => {}}
            />
            {title}
          </label>

          <button type="button" className="btn btn-danger pull-right">
            删除
          </button>
        </div>
      </li>
    )
  }
}
